package com.lyy.controller;

import com.lyy.service.Animal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Liangyaoyun
 */
@RestController
@RequestMapping("/api/v1/animal")
public class AnimalServiceController {
    @Qualifier("dogServiceimpl")
    @Autowired
    public Animal animal;
    @RequestMapping("/dog")
    public Object dog(){
        return animal.Animal();
    }
}
